<div class="container-wrapper">
  <h2>用户登录</h2>
<form action="/login" method="post">
  <table>
    <tbody>

    {{#if nameError}}
    <tr>
      <td>用户名称不能为空</td>
    </tr>
    {{/if}}

    <tr>
      <td>
       <div class="form-item">
        *<input type="text" class="input" placeholder="用户名称" name="regid" value="{{ regid }}">
        </div>
      </td>
    </tr>

    {{#if passwordError}}
    <tr>
      <td>用户名称或密码错误！</td>
    </tr>
    {{/if}}

    <tr>
      <td>
        <div class="form-item">
        *<input type="password" class="input" placeholder="密码" name="password" value="{{ password }}">
        </div>
      </td>
    </tr>
    <tr>
      <td colspan="2">
        <div class="btn-wrapper">
          <input type="reset" text="重置" class="btn btn-default">
          <input type="submit" text="提交" class="ml-14 btn btn-primary">
        </div>
      </td>
    </tr>
    </tbody>
  </table>
</form>
</div>